<%--
  Created by IntelliJ IDEA.
  User: Lin
  Date: 2021/4/27
  Time: 10:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"
         isELIgnored="false" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<form class="layui-form" id="createUserinfo" style="margin-right: 50px;
margin-top: 20px;" action="" lay-filter="createUserinfo">
    <div class="layui-form-item">
        <label class="layui-form-label">用户昵称</label>
        <div class="layui-input-block">
            <input type="text" name="nickname" required lay-verify="required" placeholder="用户昵称" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" name="username" required lay-verify="required" placeholder="用户名" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-inline">
            <input type="password" name="password" required lay-verify="required" placeholder="密码" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色</label>
        <div class="layui-input-block">
            <select name="roleInfoId" lay-verify="required">
                <option value="-1">--请选择--</option>
                <c:forEach items="${roleInfos}" var="roleInfo">
                    <option value="${roleInfo.id}">${roleInfo.roleDesc}</option>
                </c:forEach>
            </select>
        </div>
    </div>
</form>